<?php
class ich_forms{
    public function getNoConnectionForm(){
         return
         $this->getDocumentHeader().
         '
            <center>
                <table style="width: 400px; font-size: 10px; border: 10px solid silver;">
                    <tr>
                        <td>
                            <center>
                                <img src="imgs/cancel.png" alt="">
                                <font style="font-size:22px; font-weight:bold; font-family:verdana;">'._i18n_install_CONFIG_ERROR_.'</font>
                                <br><br>
                                '._i18n_install_CAN_NOT_CONNECT_TO_DATABASE.'
                                <br><br>
                                '._i18n_install_HINT_.': <i><small>'._i18n_install_YOU_CAN_READ_THE_MESSAGE_THROW_FTP_CLIENT_IN_DIRECTORY_.'</small></i>
                                <br><br><br>
                            </center>
                        </td>
                    </tr>
                </table>
            </center>
        '.
        $this->getDocumentFooter();
    }

    public function getLoginIncorrectForm(){
         return
             $this->getDocumentHeader().
             '
                <center>
                    <table style="width: 400px; font-size: 10px; border: 10px solid silver;">
                        <tr>
                            <td>
                                <center>
                                    <img src="imgs/cancel.png" alt="">
                                    <font style="font-size:22px; font-weight:bold; font-family:verdana;">'._i18n_install_CONFIG_ERROR_.'</font>
                                    <br><br>
                                    '._i18n_install_LOGIN_INCORRECT_.'
                                    <br><br><br>
                                </center>
                            </td>
                        </tr>
                    </table>
                </center>
            '.
            $this->getDocumentFooter();
    }

    public function getLogin_ConfigErrorForm(){
         return
         $this->getDocumentHeader().
         '
            <center>
                <table style="width: 400px; font-size: 10px; border: 10px solid silver;">
                    <tr>
                        <td>
                            <form action="plugins/instcheck/index.php" method="post" target="_blank">
                                <center>
                                    <img src="plugins/instcheck/imgs/cancel.png" alt="">
                                    <font style="font-size:22px; font-weight:bold; font-family:verdana;">'._i18n_install_CONFIG_ERROR_.'</font>
                                    <br><br>
                                    <table style="font-size: 10px;">
                                        <tr>
                                            <td colspan="2">
                                                <br><br>
                                                '._i18n_install_THIS_INFORMATION_IS_DETERMINED_ONLY_FOR_ADMINISTRATOR_.'
                                                <br><br>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                '._i18n_install_LOGIN_NAME_.'
                                            </td>
                                            <td>
                                                <input type="text" name="login" id="login" value="">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                '._i18n_install_PASSWORD_.'
                                            </td>
                                            <td>
                                                <input type="text" name="psswd" id="psswd" value="">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <center>
                                                    <br><br><br>
                                                    <input type="image" src="plugins/instcheck/imgs/next.png" value="'._i18n_install_READ_THE_MESSAGE_.'">'._i18n_install_READ_THE_MESSAGE_.'
                                                </center>
                                            </td>
                                        </tr>
                                    </table>
                                </center>
                            </form>
                        </td>
                    </tr>
                </table>
            </center>
        '.
        $this->getDocumentFooter();
    }

    public function getConfigErrorForm(){
         return
         $this->getDocumentHeader().
         '
            <center>
                <table style="width: 400px; font-size: 10px; border: 10px solid silver;">
                    <tr>
                        <td>
                            <center>
                                <img src="imgs/cancel.png" alt="">
                                <font style="font-size:22px; font-weight:bold; font-family:verdana;">'._i18n_install_CONFIG_ERROR_.'</font>
                                <br><br>
                                '._i18n_install_SYSTEM_ISNT_CONFIGURED_TEXT_.'
                                <br><br>
                                '._i18n_install_HINT_.': <i><small>'._i18n_install_SYSTEM_ISNT_CONFIGURED_HINT1_.': "configuration.inc.php", ".htaccess"</small></i>
                                <br><br>
                                '._i18n_install_HINT_.': <i><small>'._i18n_install_SYSTEM_ISNT_CONFIGURED_HINT2_.'</small></i>
                                <br><br>
                                '._i18n_install_HINT_.': <i><small>'._i18n_install_SYSTEM_ISNT_CONFIGURED_HINT3_1_.'</small></i>
                                <br>
                                <i><small>'._i18n_install_SYSTEM_ISNT_CONFIGURED_HINT3_2_.'</small></i>
                                <br><br><br>
                            </center>
                        </td>
                    </tr>
                </table>
            </center>
        '.
        $this->getDocumentFooter();
    }

    public function getSummaryForm(){
         return
         $this->getDocumentHeader().
         '
            <center>
                <table style="width: 400px; font-size: 10px; border: 10px solid silver;">
                    <tr>
                        <td>
                            <form action="index.php" method="post">
                                <center>
                                    <img src="plugins/instcheck/imgs/ok.png" alt="">
                                    <font style="font-size:22px; font-weight:bold; font-family:verdana;">'._i18n_install_INSTALLATION_IS_SUCCESSFUL_.'</font>
                                    <br><br>
                                    '._i18n_install_CAN_NOT_BE_CONTINUED_UNLESS_YOU_DELETE_THE_INSTALLATION_.'
                                    <br><br>
                                    '._i18n_install_HINT_.': <i><small>'._i18n_install_YOU_HAVE_TO_REMOVE_INSTALL_DIRECTORY_AND_INSTALL_FILE_FOR_SAFETY_REASONS_.'</small></i>
                                    <br><br><br>
                                    <input type="image" src="plugins/instcheck/imgs/ok.png" value="'._i18n_install_DONE_.'">'._i18n_install_DONE_.'
                                </center>
                            </form>
                        </td>
                    </tr>
                </table>
            </center>
        '.
        $this->getDocumentFooter();
    }
        private function getDocumentHeader(){
        return '
            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
            <html>
            <head>
                <title>Open Win Shop installation</title>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8;" >
            </head>
            <body style="font-family:verdana; font-size:10px;">
        ';
    }

    private function getDocumentFooter(){
        return '
            </body>
        ';
    }
}
?>
